<?php
namespace app\admin\validate;

use think\Validate;

class Login extends Validate {

    protected $rule = [
        'username'              => 'require',
        'verifycode'            => 'require|captcha',
        'password'              => 'require',
    ];

    protected $message  =   [
        'username'              => '用户名不能为空',
        'password'              => '密码不能为空',
        'verifycode'            => '验证码不正确',
    ];

    protected $scene = [
        'loginCheck' => ['username', 'password', 'verifycode'],
    ];
}